/* ======================================================================================== */
/* =========== css file for AIO Pool Billard Scoreboard index, © jh-concepts.at =========== */
/* ======================================================================================== */
/* ===================================== global styles ==================================== */
/* ======================================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #fff;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #030f1e;
}

a, a:active, a:focus, a:visited, a:hover {
  text-decoration: none;
}

/* ======================================================================================== */
/* ===================================== header styles ==================================== */
/* ======================================================================================== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15vh;
  height: 15dvh;
  border-bottom: solid 2px #555;
  background-color: #fff1;
}

header h1 {
  text-align: center;
  font-size: 4vh;
  font-size: 4dvh;
}

/* ======================================================================================== */
/* =================================== main area styles =================================== */
/* ======================================================================================== */
main {
  height: 80vh;
  height: 80dvh;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
}

section {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 2.5vw;
  font-size: 2.5dvw;
}

section#gameToChoose {
  height: 15vh;
  height: 15dvh;
  border-bottom: dotted 1px #555;
}

section#flags {
  overflow-y: scroll;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  height: 65vh;
  height: 65dvh;
}

label {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

input[type="radio"] {
  appearance: none;
  width: 2.5vh;
  width: 2.5dvh;
  height: 2.5vh;
  height: 2.5dvh;
  border: 1px solid #aaa;
  border-radius: 50%;
  outline: none;
  background-color: #aaa; 
  cursor: pointer;
  margin: 0 5vh;
  margin: 0 5dvh;
}

input[type="radio"]:checked {
  background-color: #c00;
  border: solid 1px #fff;
}

img {
  width: 20vw;
  width: 20dvw;
  margin: 5vh 5vw;
  margin: 5dvh 5dvw;
}

/* ======================================================================================== */
/* ===================================== footer styles ==================================== */
/* ======================================================================================== */
footer {
  height: 5vh;
  height: 5dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.8vh;
  font-size: 1.8dvh;
  border-top: solid 2px #555;
  background-color: #fff1;
}

/* ======================================================================================== */
/* ===================================== media Queries ==================================== */
/* ======================================================================================== */
/* ================================= orientation portrait ================================= */
/* ======================================================================================== */
@media (orientation: portrait) {

  input[type="radio"] {
    width: 2.5vw;
    width: 2.5svw;
    height: 2.5vw;
    height: 2.5dvw;
    margin: 0 2vw;
    margin: 0 2dvw;
  }

  label {
    font-size: 2.5vw;
    font-size: 2.5dvw;
  }

  header h1 {
    text-align: center;
    font-size: 4vw;
    font-size: 4dvw;
  }  

  footer {
    font-size: 1.5vh;
    font-size: 1.5dvh;
  }
  
}